package com.czk.aop;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author:ChenZhangKun
 * @Date: 2023/5/9 21:57
 */
@Configuration
@EnableConfigurationProperties(PackageProperties.class)
@ConditionalOnMissingBean(ControllerAop.class)
public class ControllerAopAutoConfiguration {
    @Bean
    public ControllerAop controllerAop(){
        return new ControllerAop();
    }
}
